<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>

<body>
    <div id="app">
        <!-- 
            v-if 会动态生产节点
            v-show 只是在上面添加了display:none
         -->
        <div v-if='Math.random()>0.6'>
            <h1>☀</h1>
        </div>
        <div v-show="Math.random>0.6">
            <h1>⭐</h1>
        </div>
    </div>
</body>
<script src="https://cn.vuejs.org/js/vue.js"></script>
<script>
    let vm = new Vue({
        el:"#app",
    })
</script>
</html>